/**
 * Constants.java
 *
 * Copyright (C) 2009,  Tomislav Milkovic
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package extjsdyntran.servlets;

/**
 * @description Servlet commands and error codes 
 */
public class Constants {

	public static final String prop_store_path = "store_path";
	public static final String prop_proxy_user = "proxy_user";
	public static final String prop_proxy_password = "proxy_password";
	public static final String prop_service = "translation_service";

	public static final String param_language = "language";	
	public static final String param_reloadlanguages = "reload";
	public static final String param_action = "xaction";
	public static final String param_data="data";
	
	public static final String param_command="cmd";
	// commangs for param_command parameter
	public static final String cmd_add="add";
	public static final String cmd_remove="remove";
	public static final String cmd_import="import";
	public static final String cmd_export="export";
	public static final String cmd_store = "store";
	public static final String cmd_load = "load";	
	public static final String cmd_test = "test";
	public static final String cmd_translate = "translate";	
	public static final String cmd_languages = "languages";
		
	public static final String json_true = "{\"success\":true}";
	public static final String json_false = "{\"success\":false}";
	
	public static final String err1 = "Language not defined!";
	public static final String err2 = "Data already exists";
	public static final String err3 = "No command requested!";
	public static final String err4 = "Remote service not available!";
	public static final String err5 = "Value not translated!";
	public static final String err6 = "Translation not saved!";
	public static final String err7 = "Cache not reloaded from disk!";
	public static final String err8 = "Lanuage not removed from cache!";
	public static final String err9 = "Language not added to cache!";
	public static final String err10 = "Translations was not imported!";
	public static final String err11 = "No command actions requested!";
	public static final String err12 = "Editable translation cervice not found!";
	public static final String err13 = "Language name too short!";
}
